package soccer.view;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.UIManager;
import javax.swing.AbstractAction;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.Action;

public class TeamAddedVerifyPanel extends JPanel {

	private JLabel okeyGifLabel;
	private JLabel okeyMessageLabel;
	private JButton againAddNewTeamButton;
	private JButton  systemBackButton ;

	/**
	 * Create the panel.
	 */
	public TeamAddedVerifyPanel() {
		setLayout(null);
		
		okeyGifLabel = new JLabel("New label");
		okeyGifLabel.setIcon(new ImageIcon("C:\\Users\\pasa\\Desktop\\okey.gif"));
		okeyGifLabel.setBounds(23, 70, 127, 104);
		add(okeyGifLabel);
		
		okeyMessageLabel = new JLabel("");
		okeyMessageLabel.setBackground(UIManager.getColor("Button.light"));
		okeyMessageLabel.setBounds(160, 138, 240, 36);
		add(okeyMessageLabel);
		
		againAddNewTeamButton = new JButton("Add new team");
		againAddNewTeamButton.setBounds(273, 233, 127, 33);
		add(againAddNewTeamButton);
		
	    systemBackButton = new JButton("Back to system");
		systemBackButton.setBounds(115, 233, 127, 33);
		add(systemBackButton);

	}

	public JLabel getOkeyGifLabel() {
		return okeyGifLabel;
	}

	public void setOkeyGifLabel(JLabel okeyGifLabel) {
		this.okeyGifLabel = okeyGifLabel;
	}

	public JLabel getOkeyMessageLabel() {
		return okeyMessageLabel;
	}

	public void setOkeyMessageLabel(JLabel okeyMessageLabel) {
		this.okeyMessageLabel = okeyMessageLabel;
	}

	public JButton getAgainAddNewTeam() {
		return againAddNewTeamButton;
	}

	public void setAgainAddNewTeam(JButton againAddNewTeam) {
		againAddNewTeamButton = againAddNewTeam;
	}

	public JButton getSystemBackButton() {
		return systemBackButton;
	}

	 public void setSystemBackButtonListener(ActionListener l) {
		systemBackButton.addActionListener(l);
	}
	public void setAgainAddNewButtonListener(ActionListener l){
		   againAddNewTeamButton.addActionListener(l);
	}
	
	
	
}
